<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title></title>
</head>

<body>
<script type="text/javascript">
var arr = new Array();							//定义数组
var str="一1按2我5帮8您";				//定义字符串
var pattern = /\d/;									//定义正则表达式
arr=str.split(pattern);							//将字符串拆分为数组
for(i=0; i < arr.length; i++){
	document.write(arr[i] + " ");
}
</script>
</body>
</html>
